import request from '@/utils/request'

export function listTable() {
  return request({
    url: '/datasources/table',
    method: 'get'

  })
}

export function listColumn(data) {
  return request({
    url: '/datasources/column?tableName=' + data.tableName,
    method: 'get'

  })
}

export default { listTable, listColumn }
